all:plot.pdf main

main:main.c 
	gcc -o main main.c

plot.pdf:main dimension
	./main > dimension
	gnuplot script.gp

clean:
	rm -f *.pdf
	rm -f main

.PHONY: all clean